Formation of differential equation by eliminating arbitrary functions